*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body, html {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #08001b;
   
}
.container{
    display: flex;
}

.container .card{
    position: relative;
    width: 300px;
    height: 400px;
    background: #0c002b;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
    overflow: hidden;
}
.container .card::before{
    position: absolute;
    content: '';
    top: 2px;
    left: 2px;
    bottom: 2px;
    width: 50%;
    pointer-events: none;
    background: rgba(255,255,255,.1);
}
.container .card .content{
    padding: 30px;
    text-align: center;
}
.container .card .content h2 {
    position: absolute;
    right: 30px;
    font-size: 4em;
    font-weight: 800;
    color: #1779ff;
    opacity: 0.1;
    z-index: 1;
    transition : .5s;
}
.container .card:hover .content h2 {
    opacity: 1;
    transform :translateY(-70px);
}

.container .card .content h3{
    position: relative;
    font-size: 1.4em;
    color: #ffffff;
    z-index: 2;
    opacity: 0.5;
    letter-spacing: 1px;
    transition: .5s;
}
.container .card:hover .content h3{
    opacity: 1;
}
.container .card .content p{
    position: relative;
    font-size: 1em;
    color: #ffffff;
    z-index: 2;
    opacity: 0.5;
    font-weight: 300;
    line-height: 26px;
    letter-spacing: 1px;
    transition: .5s;
}
.container .card:hover .content p{
    opacity: 1;
}
.container .card .content a{
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background-color: #ffffff;
    color: #0c002b;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
}
.container .card span{
    transition: 0.5s;
}
.container .card span:nth-child(1){
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent,#1779ff);
    animation: ani1 2s linear infinite;
}
@keyframes ani1{
    0%{
        transform: translateX(-100%);
    }
    100%{
        transform: translateX(100%);
    }
}
.container .card span:nth-child(2){
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, transparent,#1779ff);
    animation: ani2 2s linear infinite;
    animation-delay: 1s;
}
@keyframes ani2{
    0%{
        transform: translateY(-100%);
    }
    100%{
        transform: translateY(100%);
    }
}
.container .card span:nth-child(3){
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to left, transparent,#1779ff);
    animation: ani3 2s linear infinite;
}
@keyframes ani3{
    0%{
        transform: translateX(100%);
    }
    100%{
        transform: translateX(-100%);
    }
}
.container .card span:nth-child(4){
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to top, transparent,#1779ff);
    animation: ani4 2s linear infinite;
    animation-delay: 1s;
}
@keyframes ani4{
    0%{
        transform: translateY(100%);
    }
    100%{
        transform: translateY(-100%);
    }
}
